package com.atguigu.auth.service;

import com.atguigu.common.result.Result;
import com.atguigu.model.system.SysMenu;
import com.atguigu.vo.system.AssginMenuVo;
import com.atguigu.vo.system.RouterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 菜单表 服务类
 * </p>
 *
 * @author atguigu
 * @since 2024-01-19
 */
public interface SysMenuService extends IService<SysMenu> {
    /**
     * 菜单树
     * @return Result
     */
    List<SysMenu> tree();

    void removeMenuById(long id);

    Result<Object> doRoleMenu(long roleId);

    Result<Object> assignMenus(AssginMenuVo menuVo);

    List<RouterVo> findUserMenuListByUserId(Long userId);

    List<String> findUserPermsByUserId(Long userId);
}
